package com.api.hg.model;

import com.api.sw.duban.annotation.Field;
import com.api.sw.duban.annotation.Table;

import java.text.SimpleDateFormat;
import java.util.Date;

@Table(value="uf_swnewexception",datasource = "local")
public class swException {
    @Field(dbFiledName="")
    private String swzcid="";//实物资产ID
    @Field(dbFiledName="")
    private String kpwybh="";//卡片唯一编号
    @Field(dbFiledName="")
    private String kph="";//卡片号
    @Field(dbFiledName="")
    private String swzcbh="";//实物资产编号
    @Field(dbFiledName="")
    private String zcmc="";//	资产名称
    @Field(dbFiledName="")
    private String ggxh="";//	规格型号
    @Field(dbFiledName="")
    private String pp="";//	品牌
    @Field(dbFiledName="")
    private float dj=0;//	单价
    @Field(dbFiledName="")
    private String zczt="";//资产状态
    @Field(dbFiledName="")
    private String rkrq="";//	入库日期
    @Field(dbFiledName="")
    private int synx=0;//使用年限
    @Field(dbFiledName="")
    private int syks=0;//	使用科室
    @Field(dbFiledName="")
    private int zrr=0;//责任人
    @Field(dbFiledName="")
    private int dybm=0;//对应部门(权限用)
    @Field(dbFiledName="")
    private String cqzk="";//	产权状况
    @Field(dbFiledName="")
    private String macdz="";//MAC地址
    @Field(dbFiledName="")
    private String jqm="";//	机器名
    @Field(dbFiledName="")
    private int zclx=-1;//设备类型
    //@Field(dbFiledName="")
    //private int sfpk=-1;//	是否盘亏

    /* 建模自带属性*/
    @Field(dbFiledName="")
    private String modedatacreater="1";//创建人
    @Field(dbFiledName="")
    private String modedatacreatedate="";//创建日期
    @Field(dbFiledName="")
    private String formmodeid="197";//模块ID 默认值 本地14 海关测试196 海关正式197
    @Field(dbFiledName="")
    private String modedatacreatertype="0";//创建类型
    @Field(dbFiledName="")
    private String modedatacreatetime="";//创建时间
    public swException(){
        SimpleDateFormat sim=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.modedatacreatedate=sim.format(new Date()).split(" ")[0];
        this.modedatacreatetime=sim.format(new Date()).split(" ")[1];
    }

//    public int getSfpk() {
//        return sfpk;
//    }
//
//    public void setSfpk(int sfpk) {
//        this.sfpk = sfpk;
//    }

    public int getZclx() {
        return zclx;
    }

    public void setZclx(int zclx) {
        this.zclx = zclx;
    }

    public String getModedatacreater() {
        return modedatacreater;
    }

    public void setModedatacreater(String modedatacreater) {
        this.modedatacreater = modedatacreater;
    }

    public String getModedatacreatedate() {
        return modedatacreatedate;
    }

    public void setModedatacreatedate(String modedatacreatedate) {
        this.modedatacreatedate = modedatacreatedate;
    }

    public String getFormmodeid() {
        return formmodeid;
    }

    public void setFormmodeid(String formmodeid) {
        this.formmodeid = formmodeid;
    }

    public String getModedatacreatertype() {
        return modedatacreatertype;
    }

    public void setModedatacreatertype(String modedatacreatertype) {
        this.modedatacreatertype = modedatacreatertype;
    }

    public String getModedatacreatetime() {
        return modedatacreatetime;
    }

    public void setModedatacreatetime(String modedatacreatetime) {
        this.modedatacreatetime = modedatacreatetime;
    }

    public String getSwzcid() {
        return swzcid;
    }

    public void setSwzcid(String swzcid) {
        this.swzcid = swzcid;
    }

    public String getKpwybh() {
        return kpwybh;
    }

    public void setKpwybh(String kpwybh) {
        this.kpwybh = kpwybh;
    }

    public String getKph() {
        return kph;
    }

    public void setKph(String kph) {
        this.kph = kph;
    }

    public String getSwzcbh() {
        return swzcbh;
    }

    public void setSwzcbh(String swzcbh) {
        this.swzcbh = swzcbh;
    }

    public String getZcmc() {
        return zcmc;
    }

    public void setZcmc(String zcmc) {
        this.zcmc = zcmc;
    }

    public String getGgxh() {
        return ggxh;
    }

    public void setGgxh(String ggxh) {
        this.ggxh = ggxh;
    }

    public String getPp() {
        return pp;
    }

    public void setPp(String pp) {
        this.pp = pp;
    }

    public float getDj() {
        return dj;
    }

    public void setDj(float dj) {
        this.dj = dj;
    }

    public String getZczt() {
        return zczt;
    }

    public void setZczt(String zczt) {
        this.zczt = zczt;
    }

    public String getRkrq() {
        return rkrq;
    }

    public void setRkrq(String rkrq) {
        this.rkrq = rkrq;
    }

    public int getSynx() {
        return synx;
    }

    public void setSynx(int synx) {
        this.synx = synx;
    }

    public int getSyks() {
        return syks;
    }

    public void setSyks(int syks) {
        this.syks = syks;
    }

    public int getZrr() {
        return zrr;
    }

    public void setZrr(int zrr) {
        this.zrr = zrr;
    }

    public int getDybm() {
        return dybm;
    }

    public void setDybm(int dybm) {
        this.dybm = dybm;
    }

    public String getCqzk() {
        return cqzk;
    }

    public void setCqzk(String cqzk) {
        this.cqzk = cqzk;
    }

    public String getMacdz() {
        return macdz;
    }

    public void setMacdz(String macdz) {
        this.macdz = macdz;
    }

    public String getJqm() {
        return jqm;
    }

    public void setJqm(String jqm) {
        this.jqm = jqm;
    }

    @Override
    public String toString() {
        return "swException{" +
                "swzcid='" + swzcid + '\'' +
                ", kpwybh='" + kpwybh + '\'' +
                ", kph='" + kph + '\'' +
                ", swzcbh='" + swzcbh + '\'' +
                ", zcmc='" + zcmc + '\'' +
                ", ggxh='" + ggxh + '\'' +
                ", pp='" + pp + '\'' +
                ", dj='" + dj + '\'' +
                ", zczt='" + zczt + '\'' +
                ", rkrq='" + rkrq + '\'' +
                ", synx='" + synx + '\'' +
                ", syks='" + syks + '\'' +
                ", zrr='" + zrr + '\'' +
                ", dybm='" + dybm + '\'' +
                ", cqzk='" + cqzk + '\'' +
                ", macdz='" + macdz + '\'' +
                ", jqm='" + jqm + '\'' +
                '}';
    }
}
